#ifndef __MANCAR__
#define __MANCAR__

#include <iostream>
#include <fstream>
#include <sstream>

#include "Cmd.h"
#include "Const.h"
#include "SmartCar.h"
#include "CarController.h"

void manageSmartCar(CarController* _carController);

SmartCar* getCarByNum();
void createCar();
void listCar();
void editCar();
void deleteCar();

void storeCarData();
void loadCarData();

Component* getComponentByNum(SmartCar* car);
void createComponent(SmartCar* car);
void listComponent(SmartCar* car);
void editComponent(SmartCar* car);
void deleteComponent(SmartCar* car);

Param* getParamByNum(Component* component);
void createParam(Component* component);
void createIdParam(Component* component);
void listParam(Component* component);
void editParam(Component* component);
void deleteParam(Component* component);

Component* getComponentByNum(Component* component);
void createComponent(Component* component);
void listComponent(Component* component);
void editComponent(Component* component);
void deleteComponent(Component* component);

void editValue(Param* param);
void editUnit(Param* param);
void editRemark(Param* param);
void setAsId(Param* param);

#endif